package com.cwf.framework.authcode.service;

import com.cwf.framework.authcode.entity.KaptchaImageCodeEntity;

import java.io.IOException;

/**
 * @description 图形验证码服务
 * @author 18068
 * @date 2023/2/17 13:24
 */
public interface KaptchaService {


    /**
     * @param
     * @return
     * @description 生成图形验证码
     * @author 18068
     * @date 2023/2/17 10:34
     */
    KaptchaImageCodeEntity generateImageCode() throws IOException;


    /**
     * @description 检查验证码是否正确
     * @param uuid 验证码标识
     * @param code 验证码
     * @author 18068
     * @date 2023/2/17 12:43
     * @return
     */
    boolean checkImageCode(String uuid,String code);
}
